package cn.izeno.wx.models.web

import com.alibaba.fastjson.annotation.JSONField
import javafx.scene.control.MenuButton
import org.simpleframework.xml.Root

@Root
class ContactRes {
  @field:JSONField(name = "BaseResponse")
  lateinit var base: BaseRes

  @field:JSONField(name = "MemberCount")
  var count = 0

  @field:JSONField(name = "MemberList")
  lateinit var data: List<Member>

  /**
   * 查看seq是否为0，0表示好友列表已全部获取完毕，若大于0，则表示好友列表未获取完毕，当前的字节数（断点续传）
   */
  @field:JSONField(name = "Seq")
  var seq: Int = 0


  //<editor-fold desc="Json 解析辅助字段">
  @JSONField(serialize = false)
  fun setContactList(data: List<Member>) {
    this.data = data
  }

  @JSONField(name = "Count", serialize = false)
  fun setACount(count: Int) {
    this.count = count
  }
  //</editor-fold>

}
